﻿// See https://aka.ms/new-console-template for more information
using MyHttpHelp;
using MyHttpHelp.Model;
using System.Security.Principal;
using System.Threading.Channels;

Console.WriteLine("Hello, World!");
HttpHelp wbe = new HttpHelp();
while (true)
{
    string url = "";
    var key = Console.ReadLine();
    if (key=="1")
    {

        url = "http://localhost:5006/api/sysAuth/userInfo";
        wbe.Get(url);
    }
    if (key == "2")
    {

        url = "http://localhost:5006/api/sysAuth/login";
        wbe.Post(url,new LoginInput()
        {
             Account= "superadmin",
             Password="123456",
             Code="",
             CodeId=0
        });
    }
}